@foreach(['success','danger'] as $v)
    @if(session()->has($v))
        <div class="alert alert-{{$v}}" role="alert">
            {{session($v)}}
        </div>
        @endif

    @endforeach